// params : (3, 10)
// [Array(3), Array(3), Array(3), Array(1)]
// 0:[1, 2, 3]
// 1:[4, 5, 6]
// 2:[7, 8, 9]
// 3:[10]

function NumGoArr(part, total) {
	let arr = new Array()
	let temp = Math.floor(total / part)
	for (let i = 0; i < part; i++) {
		arr[i] = new Array()
		for (let j = i * temp + 1; j <= (i + 1) * temp; j++) {
			arr[i].push(j)
		}
	}

	if (total % part != 0) {
		let defetSce = total - temp * part
		arr.push(new Array())
		for (let i = 0; i < defetSce; i++) {
			arr[arr.length - 1].push(total - i)
		}
		arr[arr.length - 1].reverse()
	}
	return arr
}
